package com.excerise.poly.array;

/**
 *
 *
 * @author Way on 2021/8/3
 */
public class Student extends Person {
    public double score;

    public Student(String name, int age, double score) {
        super(name, age);
        this.score = score;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String say() {
        return super.say() + " score = " + score;
    }

    public void study() {
        System.out.println(getName() + " 正在学习");
    }
}
